package day1;

/**
 * @author oldliu
 * @since 1.0
 */
public class SystemTest2 {
    public static void main(String[] args) {
        //arrayCopy数组扩容
        int []a1={1,3,4,6,7,8,9,10,13};
        int []a2=new int[20];
        //把a1中的值放入a2
        System.arraycopy(a1,2,a2,5,3);
        //输出a2
        for(int k:a2){
            System.out.print(k+" ");
        }
    }
}
